home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn Microsoft Visual Basic 6.0 Now
/
Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO
/
media
/
chap07
/
b07w005.cc2
< prev
next >
Wrap
Text File
|
1998-06-07
|
999b
|
23 lines
0, The purpose of these Printer statements
2, is quite straightforward. The first line
5, initializes the Printer object and
7, prepares it to receive text. The next three
10, lines set the FontName, FontSize, and
13, FontBold properties of the Printer object
15, to formatting settings supported by the
18, default printer. The routine specifies
20, the Arial font, a scaleable True Type
23, font that is included automatically with
25, Windows.The fifth statement uses the Print
29, method to send the word stored in the
30, Label1.Caption property to the printer.
34, It prints the text in bold on the first
36, line of the page and then instructs the
38, printer to move to the next line. The
42, sixth line returns the font style to
44, Normal, and the seventh line prints the
46, contents of the form's text box object.
50, Finally, the EndDoc method completes the print
53, job and sends the entire document to
55, the Windows print spooler.
56, END